package com.gmlive.common.sample.http

import com.inkegz.network.BaseModel
import retrofit2.http.*

/**
 * 请求示例
 */
interface TestService{
    @POST("api/post/feed/list")
    @Headers("Content-Type: application/json")
    suspend fun apiPostFeedList(@Body param: ApiPostFeedListBean): BaseModel<*>

    @GET("api/post/feed/list")
    suspend fun apiPostFeedList(@Query("peer_id") peerId: Int, @Query("last_feed_create_time") lastFeedCreateTime: Long, @Query("count") count: Int): BaseModel<*>

    @GET("api/resource/gift")
    suspend fun apiResourceGift(): BaseModel<*>
}

/**
 * @param peer_id 目标用户id
 * @param last_feed_create_time
 * @param count
 */
data class ApiPostFeedListBean(val peer_id: Int, val last_feed_create_time: Long, val count: Int = 10)